//express
//nodemon    node app.js   nodemon  app.js
//mongoose   中间件
const express = require('express');
const cros = require('cors');
const app = express();

app.use(cros())
app.use(express.urlencoded({extended:false}))
app.use(express.json())
app.use('/' , require('./router/index'))

app.listen(3000)